import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        //华为
        String huaweiBrand = "华为";
        double huaweiSize = 5.5;
        double huaweiPrice = 3688.88;
        String huaweiConfig = "8+128g 全面刘海屏";
        //小米手机
        String xiaomiBrand = "小米";
        double xiaomiSize = 5.0;
        double xiaomiPrice = 2988.88;
        String xiaomiConfig = "4+64g 全面屏";
        //华为手机入库
        System.out.println("品牌型号：" + huaweiBrand);
        System.out.println("尺寸：" + huaweiSize);
        System.out.println("价格" + huaweiPrice);
        System.out.println("配置" + huaweiConfig);
        System.out.println("请输入" + huaweiBrand + "手机的库存");
        Scanner sc = new Scanner(System.in);
        int huaweiCount = sc.nextInt();
        double huaweiTotal = huaweiCount * huaweiPrice;
        System.out.println("库存" + huaweiBrand + "手机的总金额："
                + huaweiTotal);
        //小米手机入库
        System.out.println("品牌型号：" + xiaomiBrand);
        System.out.println("尺寸：" + xiaomiSize);
        System.out.println("价格" + xiaomiPrice);
        System.out.println("配置" + xiaomiConfig);
        System.out.println("请输入" + xiaomiBrand + "手机的库存");
        int xiaomiCount = sc.nextInt();
        double xiaomiTotal = xiaomiCount * xiaomiPrice;
        System.out.println("库存" + xiaomiBrand + "手机的总金额："
                + xiaomiTotal);

        //库存清单
        System.out.println("-----库存清单-----");
        System.out.println("品牌型号  尺寸  价格      配置   库存数量  总价");
        System.out.println(huaweiBrand + "  " + huaweiSize + "  " + huaweiPrice + "  "
            + huaweiConfig + "  " + huaweiCount + "  " + huaweiTotal);
        System.out.println(xiaomiBrand + "  " + xiaomiSize + "  " + xiaomiPrice + "  "
                + xiaomiConfig + "  " + xiaomiCount + "  " + xiaomiTotal);

        System.out.println("-----------------");
        int total = huaweiCount + xiaomiCount;
        double totalMoney = huaweiTotal + xiaomiTotal;

        //总库存数量与库存总价
        System.out.println("总库存" + total);
        System.out.println("库存总价" + totalMoney + "$");


    }
}
